package com.bone.spider.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.bone.spider.enumeration.DownloadStatus;

import lombok.Data;

/**
 * @author learnting
 * @date 2020-03-09
 */
@Data
@Entity
@Table(name = "storage_mata")
public class StorageMata {

  @Id
  @GeneratedValue(strategy = GenerationType.AUTO, generator = "native")
  @GenericGenerator(name = "native", strategy = "native")
  private Long id;
  
  private String name;
  
  @Column(name = "path_name")
  private String pathName;
  
  private String url;
  
  private DownloadStatus downloadStatus;
  
  private String md5;
}
